package messagesPacks;

import java.sql.Date;

import messagesPacks.GenericMessage.msgType;

import Entity.BookCopy;

/**
 * This class representing a LibrarianSearchCopyMessage
 * Date: 2/1/2013
 * @author Tali Pisarev
 *
 */

public class LibrarianSearchCopyMessage extends GenericMessage
{

    private static final long serialVersionUID = 1L;
    
    /**BookCopy is entity that includes all the details of copy*/
    BookCopy bookCopy;
    /**save the Query result*/
	private int queryCopySearchResult=-10 ;
	
	///*************************************************************************************************************
	
/**
* Constructor the LibrarianSearchCopyMessage with default values
* @param String copyID
*/
	public LibrarianSearchCopyMessage(String copyID)
	{
		this.type = msgType.LibrarianSearchCopyMSG; 
		this.bookCopy= new BookCopy();
		this.bookCopy.setCopyID(copyID);
	}
	
//===================================================================	
//  Getters & Setters
//===================================================================		
	public BookCopy getCopy()
	{
		return bookCopy;
	}

	public void setCopy(BookCopy bookCopy) 
	{
		this.bookCopy = bookCopy;
	}


	
	public int getQueryCopySearchResult()
	{
		return queryCopySearchResult;
	}


	public void setQueryCopySearchResult (int queryCopySearchResult)
	{
		this.queryCopySearchResult = queryCopySearchResult;
	}
	

}